<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<link rel="stylesheet" href="resources/css/style.css" type="text/css"/>
<style type="text/css">
#topT td {
	border: 1px solid #eeeeee;
}

#topT tr td:first-child {
	background:#444444;
	color:#eeeeee;
}

input[type=button] {
	width:120px;
	height:26px;
}
</style>

<title>꽁알 : Administrator - 1:1 문의 내용 보기</title>
</head>
<body>

<div style="text-align:center;border:1px solid #eeeeee;">
<table id="topT" align="center" cellspacing="0" cellpadding="5" style="width:420px;">
	<tr>
		<td>날짜</td>
		<td>${resultClass.regdate }</td>
	</tr>
	<tr>
		<td>ID</td>
		<td>${resultClass.user_id }</td>
	</tr>
	<tr>
		<td>E-Mail</td>
		<td>${resultClass.email }</td>
	</tr>
	<tr>
		<td>질문 분류</td>
		<td>${resultClass.type }</td>
	</tr>
</table>
<br/>

<input type="text" style="width:420px;height:26px;margin:2px;padding:1px;" value="${resultClass.subject }" readonly/>
<textarea rows="10" cols="66" style="resize:none;width:420px;" readonly>${resultClass.contents }</textarea>
<br/>

<c:if test="${resultClass.reply != null }">
	<textarea rows="10" cols="66" style="resize:none;width:420px;" readonly>${resultClass.reply }</textarea>
</c:if>
<c:if test="${resultClass.reply == null }">
	<div style="height:100px;margin-top:50px;">답변이 없습니다.</div>
</c:if>
<br/>

<input type="button" value="답변 보내기" onclick="location.href='ask_replyForm.ga?ask_no=${resultClass.ask_no}'"/>
<input type="button" value="닫기" onclick="self.close()"/>

</div>

</body>
</html>